﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using MEC.WMS;


namespace MEC {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main() {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);

          MainFrmLogin frmLogin = new MainFrmLogin();
            Application.Run(frmLogin);
            if (frmLogin.DialogResult == DialogResult.OK){
                MainFrm mainFrm = new MainFrm(frmLogin.Cs, frmLogin.UserCode,frmLogin.SystemUserEntity);
                frmLogin.Dispose();
                Application.Run(mainFrm);
            
            }
        }
    }
}
